package com.snow.datasource.strategy.annoation;

import com.snow.datasource.strategy.enums.HandleStrategy;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * @Description
 * @Author fanxl
 * @Date 2020/12/24
 **/
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Strategy {

    @AliasFor("type")
    HandleStrategy value() default HandleStrategy.LOAD_BALANCE;

    @AliasFor("value")
    HandleStrategy type() default  HandleStrategy.LOAD_BALANCE;
}
